package top.jidanmin.demo.lightserver.device;

import lombok.Data;

@Data
public class Device {
    private Long id;
    private String name;

    public Device(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Device() {}

    public Device(DeviceEntity entity) {
        this.id = entity.getId();
        this.name = entity.getName();
    }
}
